#define _CRT_SECURE_NO_WARNINGS 1

using namespace std;
#include"string.h"

void test_string1()
{
	yj::string s;

	s.push_back('h');
	s.push_back('e');
	s.push_back('l');
	s.push_back('l');
	s.push_back('o');

	for (auto c : s)
	{
		cout << c << ' ';
	}
	cout << endl;

	yj::string s1(s);
	for (auto c : s1)
	{
		cout << c << ' ';
	}
	cout << endl;

	cout << s1;
}

void test_string2()
{
	yj::string s1 = "hello";
	yj::string s2 = "hello";

	cout << (s1 < s2);
	cout << endl;

	s1.append(" world");
	cout << s1 << endl;

	s1 += " yj";
	cout << s1 << endl;
}

void test_string3()
{
	yj::string s = "hello";
	cin >> s;
	cout << s << endl;
}
int main()
{
	test_string3();
	return 0;
}